package org.gap.jseed.injection;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

import org.gap.jseed.injection.annotation.After;

public class AfterBehaviorInjector extends BaseInjector {

	@Override
	protected Class<? extends Annotation> getAnnotationType() {
		return After.class;
	}

	@Override
	protected void injectMethodWithCode(ClassWriter javaWriter, Method method, Annotation annotation) {
		After after = (After)annotation;
		javaWriter.insertAfter(method, after.inject());
	}

}
